home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / btrieve / btr61m.exe / 08CH4.TXT < prev    next >
Text File  |  1993-07-16  |  18KB  |  502 lines

  1. CHAPTER 4    CONFIGURING AND USING THE REQUESTERS
  2.  
  3. Btrieve provides a DOS Requester, an OS/2
  4. Requester, a Windows Requester, and a UnixWare
  5. Requester.  This chapter provides configuration
  6. options and instructions for loading and unloading the
  7. Requester in each operating environment.
  8.  
  9. NOTE:  The Btrieve Requesters have changed (primarily
  10. in key definition) between previous versions and
  11. Btrieve v6.1.  Therefore, all workstations accessing
  12. the Btrieve v6.1 NLM must use the Btrieve v6.1 Requesters.
  13.  
  14. For information about the new UnixWare Requester,
  15. please refer to the Readme file that accompanies this
  16. release.
  17.  
  18.  
  19. DOS Requester
  20.  
  21. You must load the Btrieve DOS Requester (BREQUEST.EXE) at a
  22. workstation running DOS before that workstation can access
  23. network Btrieve files using the Btrieve NLM. The DOS
  24. Requester loads into a DOS workstation's memory as a
  25. Terminate and Stay Resident (TSR) program. You can access
  26. local as well as remote files by running both client-based
  27. (local) Btrieve and the Requester at your workstation.
  28.  
  29. NOTE: Client-based Btrieve is available only as part of the
  30. Btrieve Developer's Kit and must be purchased separately.
  31.  
  32.  
  33. DOS Requester Configuration Options
  34.  
  35. There are five configuration options for the Btrieve DOS
  36. Requester:  NetWare Runtime Server Support (/C), Data
  37. Message Length (/D), DOS Session Load (/L), Real-Time Data
  38. Compression (/O), and Help (/?).  Previous versions of the
  39. DOS Requester also supported the /S and /R options.  The
  40. DOS Requester v6.x accepts the /S and /R options for
  41. backwards compatibility, but otherwise ignores them.
  42.  
  43.  
  44. NetWare Runtime Server Support (/C)
  45.  
  46. Range: None
  47. Default: /C:1
  48. Memory Required: Not applicable
  49.  
  50. This option allows you to enable or disable NetWare Runtime
  51. server support.
  52.  
  53. /C:0 | /C:1 | /C:1,username,password
  54.  
  55. /C:0        Disables NetWare Runtime server support.
  56. /C:         Enables NetWare Runtime server support.  Btrieve
  57.             looks at the username for the drive (current
  58.             server) on which you are presently running.
  59.  
  60.             If the username is SUPERVISOR, Btrieve searches
  61.             for another username in the table of usernames
  62.             for the servers onto which you are logged.
  63.  
  64.             If the username is not SUPERVISOR, Btrieve
  65.             searches for that username on the NetWare
  66.             Runtime server. If it is not a valid username,
  67.             Btrieve returns an error at the time of the Open
  68.             or Create request.
  69.  
  70. /C:1,username,password
  71.             Enables NetWare Runtime server support. Btrieve
  72.             verifies the specified username and password
  73.             for the NetWare Runtime server. Btrieve returns
  74.             an error if the specified username is not found
  75.             or the password is invalid.
  76.  
  77. username
  78.             Preferred login name on the NetWare
  79.             Runtime server.  If you specify SUPERVISOR for
  80.             the username, Btrieve returns an error and the
  81.             DOS Requester will not load.
  82.  
  83. password
  84.             Login password for the specified user.
  85.             For information on using Btrieve with NetWare
  86.             Runtime,  see Chapter 3, "Installing and
  87.             Configuring Btrieve."
  88.  
  89.  
  90. Data Message Length (/D)
  91.  
  92. Range: 532 through 57,000 bytes
  93. Default: 4,096 bytes
  94. Memory Required: 538 bytes + data message length
  95.  
  96. This option specifies the length of the largest record (or
  97. the largest portion or chunk of a record) you want to
  98. access through Btrieve.  (If you omit this option, the
  99. Requester uses the default value, 8,192.) The Requester
  100. uses this value to calculate the length of the data message
  101. buffer reserved for passing records between Btrieve and
  102. your applications.  The Requester maintains one copy of the
  103. data message buffer.
  104.  
  105. The value you enter here should not exceed the largest
  106. record size you configure for Btrieve through the Setup
  107. utility since that is the maximum message that BSPXCOM can
  108. receive.  (For more information, refer to the section
  109. "Largest Record Size.") Specify the data message length in
  110. bytes.  For example, if the largest record your application
  111. uses is 3,000 bytes, specify the /D option as follows:
  112.  
  113.    /D:3000
  114.  
  115. Specifying a higher value than you need for the /D option
  116. does not improve performance and may waste memory.
  117.  
  118.  
  119. DOS Session Load (/L)
  120.  
  121. Range: Not applicable
  122. Default: Not applicable
  123. Memory Required: Not applicable
  124.  
  125. This option allows you to load another instance of BREQUEST
  126. even if it is already loaded.  This option is useful if you
  127. want to run Windows applications using the DOS Requester
  128. while running DOS VM applications that are also using the
  129. DOS Requester.
  130.  
  131. To run Windows applications that use the
  132. DOS Requester, you must load BREQUEST before starting
  133. Windows.  In order to run DOS applications in Windows, you
  134. must load BREQUEST in each DOS session.  However, if you
  135. load BREQUEST outside of Windows, you cannot load it again
  136. in a DOS session.
  137.  
  138. For Windows applications using the DOS Requester, load
  139. BREQUEST outside of Windows.  In each Windows DOS session
  140. that will be running a Btrieve application, load BREQUEST
  141. with the /L option.  Doing so will load another instance of
  142. BREQUEST that is available only to the DOS session.
  143.  
  144. This operation provides the DOS session with its own copy of
  145. BREQUEST and prevents the DOS session from using the
  146. instance of BREQUEST that you loaded before starting
  147. Windows.
  148.  
  149.  
  150. Real-Time Data Compression (/O)
  151.  
  152. Range: None
  153. Default: No compression
  154. Memory Required: Approximately 32 KB on the workstation and 32
  155.    KB per client on the server
  156.  
  157. In many cases (such as when implementing extended reads,
  158. VATs), this option can help reduce network traffic by
  159. reducing the number of packets required to complete a
  160. request to Btrieve.  This option may, however, adversely
  161. affect memory and performance.
  162.  
  163. Compressing and
  164. decompressing data takes extra CPU time on both the server
  165. and client sides.  Because of overhead, you should not use
  166. this option with fast networks or with slow workstations
  167. for clients.
  168.  
  169.  
  170. Help (/?)
  171.  
  172. The /?  option lists the other options that are available
  173. (/C, /D, and /O) and mentions that although the /S and /R
  174. options are accepted for backwards compatibility, Btrieve
  175. v6.x ignores them.  Loading the DOS Requester Load the DOS
  176. Requester at the workstation by entering the following
  177. command:
  178.  
  179.    [path] BREQUEST [option]
  180.  
  181.   path
  182.   The pathname to the directory where the DOS Requester is
  183.   stored.  You can omit the pathname if the DOS Requester is
  184.   stored on the default drive or if it is located in a
  185.   directory in your search path.
  186.  
  187.   option
  188.   Any of the configuration options (/C, /D, /L, /O, or /?).
  189.   For example, if the Requester is on the default drive and
  190.   you want to specify a 2,048-byte data message length, enter
  191.   BREQUEST /D:2048.
  192.  
  193.   The forward slash (/ ) before the configuration option is
  194.   the only valid character you can use.  If you specify a
  195.   dash (-) or a backslash ( \), the Requester may load
  196.   improperly.
  197.  
  198.  
  199. Unloading the DOS Requester
  200.  
  201. To unload the DOS Requester, use the DOS Requester utility,
  202. BREQUTIL.EXE.  At the workstation where the DOS Requester is
  203. loaded, enter BREQUTIL -STOP.  (To determine the version of
  204. your DOS Requester, you can enter BREQUTIL -VER.)
  205.  
  206. NOTE:  If files have been left open (as happens, for
  207. example, when an application does not issue a Close
  208. operation for each open file), simply logging out of one or
  209. more servers from a workstation does not close Btrieve
  210. files or terminate the Btrieve SPX connection to the
  211. server.  To close Btrieve files and terminate the
  212. connection, use the BREQUTIL -STOP command.
  213.  
  214.  
  215. OS/2 Requester
  216.  
  217. The following files must be loaded in a directory listed in
  218. an OS/2 workstation╒s LIBPATH before a Btrieve application
  219. can access the Btrieve NLM from that workstation:
  220.  
  221. o BTRCALLS.DLL - the Btrieve dynamic link Requester for OS/2
  222.   workstations.
  223.  
  224. o NDBCOMM.DLL - the communications Requester for OS/2
  225.   workstations.  NDBCOMM.DLL provides the necessary data
  226.   communications between the workstation and the Btrieve
  227.   NLM.
  228.  
  229. You can access local as well as remote files by running both
  230. client-based (local) Btrieve and the Requester at your
  231. workstation.  If you want to run both client-based Btrieve
  232. and the Requester, you must use the OS/2 Conversion utility
  233. (NDBCNVT.EXE) to convert the client-based BTRCALLS.DLL to
  234. BTRLOCL.DLL.  (By default, the Requester and client-based
  235. Btrieve have the same name.)
  236.  
  237. NOTE:  Client-based Btrieve is available only as part of the
  238. Btrieve Developer╒s Kit and must be purchased separately.
  239.  
  240.  
  241. OS/2 Requester Configuration Options
  242.  
  243. You are not required to specify any configuration options
  244. for the OS/2 Requester.  Since the internal tables that
  245. control the options are not fixed, the tables will grow as
  246. needed.
  247.  
  248. There are three configuration options for the OS/2
  249. Requester:  NetWare Runtime Server Support (/C), Data
  250. Message Length (/D), and Number of Servers (/S).
  251.  
  252. NOTE: Although you can set the initial size of the tables using
  253. the Data Message Length (/D) and the Number of Servers (/S)
  254. options, setting table sizes is not recommended.
  255.  
  256.  
  257. NetWare Runtime Server Support (/C)
  258.  
  259. Range: None
  260. Default: /C:1
  261. Memory Required: Not applicable
  262.  
  263. This option allows you to enable or disable NetWare Runtime
  264. server support.
  265.  
  266.   /C:0 | /C:1 | /C:1,username,password
  267.  
  268.   /C:0        Disables NetWare Runtime server support.
  269.   /C:1        Enables NetWare Runtime server support. Btrieve
  270.         looks at the username for the drive (current
  271.         server) on which you are presently running.
  272.         If the username is SUPERVISOR, Btrieve searches
  273.         for another username in the table of usernames
  274.         for the servers onto which you are logged.
  275.  
  276.         If the username is not SUPERVISOR, Btrieve
  277.         searches for that username on the NetWare
  278.         Runtime server. If it is not a valid username,
  279.         Btrieve returns an error at the time of the Open
  280.         or Create request.
  281.  
  282.   /C:1,username,password
  283.         Enables NetWare Runtime server support. Btrieve
  284.         verifies the specified username and password for
  285.         the NetWare Runtime server. Btrieve returns an
  286.         error if the specified username is not found or
  287.         the password is invalid.
  288.  
  289.   username Preferred login name on the NetWare Runtime server.
  290.        If you specify SUPERVISOR for the username, Btrieve
  291.        returns an error and the OS/2 Requester will not
  292.        load.
  293.  
  294.   password Login password for the specified user.
  295.        For information on using Btrieve with NetWare
  296.        Runtime, see Chapter 3, "Installing and Configuring
  297.        Btrieve."
  298.  
  299.  
  300. Data Message Length (/D)
  301.  
  302. Range: 532 through 65,000 bytes
  303. Default: 4,096 bytes
  304. Memory Required: 538 bytes + data message length
  305.  
  306. The /D option specifies the length of the largest record
  307. (or the largest portion or chunk of a record) you want to
  308. access through Btrieve.  The OS/2 Requester uses this value
  309. to calculate the length of the data message buffer reserved
  310. for passing records between Btrieve and your applications.
  311. The Requester maintains one copy of the data message buffer.
  312.  
  313. The value you enter here should not exceed the value you
  314. specified for the Largest Record Size configuration option
  315. in the Setup utility.  (For more information, refer to the
  316. section "Largest Record Size.") The value for this option
  317. represents the maximum message length that BSPXCOM can
  318. receive.
  319.  
  320. Specify the record length in bytes.  For example, if the
  321. largest record your application uses is 3,000 bytes,
  322. specify the /D option as follows:
  323.  
  324.    /D:3000
  325.  
  326. Specifying a higher value than you need for the /D option
  327. does not improve performance.
  328.  
  329.  
  330. Number of Servers (/S)
  331.  
  332. Range: 1 through 255
  333. Default: 8
  334. Memory Required: 27 bytes per server
  335.  
  336. The /S option specifies the number of servers that have the
  337. Btrieve NLM active on the network.
  338.  
  339.  
  340. Configuring the OS/2 Requester
  341.  
  342. Set the Requester configuration options using the following
  343. command:
  344.  
  345.    SET BRQPARMS=option
  346.  
  347.    option
  348.    Any of the three configuration options (/C, /D, or /S).  Do
  349.    not include a space between BRQPARMS and the equal sign.
  350.    You can, however, insert a space between each configuration
  351.    option you specify.
  352.  
  353. For example, to specify a 10,240-byte data message length
  354. and four servers, issue the following command:
  355.  
  356.    SET BRQPARMS=/D:10240 /S:4
  357.  
  358. The forward slash (/ ) before the configuration option is
  359. the only valid character you can use.  If you specify a
  360. dash (-) or a backslash ( \), the Requester may load
  361. improperly.
  362.  
  363.  
  364. Loading the OS/2 Requester
  365.  
  366. An application may load the Btrieve for OS/2 Requester in
  367. one of the following two ways:
  368.  
  369. o Implicitly - Your application can implicitly load the
  370.   OS/2 Requester either by linking with the import library
  371.   BTRCALLS.LIB or by specifying imported functions in the
  372.   application definition file.  In either case, the
  373.   operating system loads the OS/2 Requester automatically
  374.   when the application is started.
  375.  
  376. o Explicitly - Your application can load the OS/2 Requester
  377.   explicitly using the operating system API functions.  When
  378.   the application loads the Requester explicitly, the
  379.   operating system does not load the OS/2 Requester until
  380.   notified to do so.
  381.  
  382.  
  383. Unloading the OS/2 Requester
  384.  
  385. At an OS/2 workstation, the operating system removes the
  386. dynamic link routines from memory when the application
  387. terminates or when the application explicitly unloads the
  388. OS/2 Requester using the operating system API.
  389.  
  390. NOTE:  If files have been left open (as happens, for
  391. example, when an application does not issue a Close
  392. operation for each open file), simply logging out of one or
  393. more servers from a workstation does not close Btrieve
  394. files or terminate the Btrieve SPX connection to the
  395. server.  To close files and terminate the connection, you
  396. must either unload the Requester or restart the
  397. workstation.
  398.  
  399.  
  400. Windows Requester
  401.  
  402. In the Windows environment, you must load the DOS
  403. Requester, BREQUEST.EXE, before starting Windows.
  404. Windows-based Btrieve applications access the Requester by
  405. means of a DLL, WBTRCALL.DLL, which uses the DOS Protected
  406. Mode Interface (DPMI) that Windows provides.
  407.  
  408. The Windows Requester (that is, WBTRCALL.DLL) is the
  409. Btrieve interface DLL for Windows v3.x.  The DLL provides
  410. the same API as client-based Btrieve and requires no
  411. modification to the application.
  412.  
  413. You can access local as well as remote files by running both
  414. client-based (local) Btrieve and the Requester at your
  415. workstation. If you want to run both client-based Btrieve
  416. and the Requester, you must run the Windows Conversion
  417. utility (WNDBCNVT.EXE) to convert the client-based
  418. WBTRCALL.DLL to WBTRLOCL.DLL.
  419.  
  420. NOTE: Client-based Btrieve must be purchased
  421. separately.
  422.  
  423.  
  424. Windows Requester Configuration Options
  425.  
  426. The following list describes the available configuration
  427. options for the Windows Requester.  These options should be
  428. specified in the NOVDB.INI file under [brequestDPMI].
  429.  
  430. NOVDB.INI is the Novell initialization file for the Windows
  431. Requester.  It is included on the distribution diskette.
  432.  
  433.   Tasks=#      Specifies how many concurrent tasks may use
  434.           the Windows Requester.  The range is 1
  435.           through 255.    The default value is 10.
  436.  
  437.   Local=Yes/No      Instructs the Windows Requester to use
  438.           client-based Btrieve for accessing files
  439.           locally.  The default value is No.
  440.  
  441.   Chkparms=Yes/No Instructs the Windows Requester to validate
  442.           pointers passed to it.  You should use this
  443.           option only during development.  The default
  444.           is No.
  445.  
  446.  
  447. Loading the Windows Requester
  448.  
  449. The DOS Requester must be loaded in the DOS environment
  450. before you start Windows.  To load the DOS Requester, use
  451. the WINSTART.BAT file or type BREQUEST at the DOS prompt
  452. before loading Windows.  An application may load the
  453. Windows Requester in one of the following two ways:
  454.  
  455. o Implicitly - Your application can implicitly load the
  456.   Windows Requester by either linking with the import
  457.   library WBTRCALLS.LIB or by specifying imported functions
  458.   in the application definition file.  When an application
  459.   loads a DLL implicitly, the operating system automatically
  460.   loads the DLL when the application is started.
  461.  
  462. o Explicitly - Your application may load the Windows
  463.   Requester explicitly using the operating system API
  464.   functions.  The operating system does not load the DLL
  465.   until notified to do so.
  466.  
  467. NOTE:  If you want to run a DOS Btrieve application in the
  468. DOS box and a Windows Btrieve application at the same time,
  469. you must have the DOS Requester loaded in each DOS
  470. session.  However, if you have already loaded the DOS
  471. Requester before loading Windows, you cannot load the DOS
  472. Requester in any subsequent DOS session.  Consequently, you
  473. cannot run the DOS Btrieve application in the DOS box.
  474.  
  475. For Windows applications using the DOS Requester, load
  476. BREQUEST outside of Windows.  In each Windows DOS session
  477. that will be running a Btrieve application, load BREQUEST
  478. with the /L option.  Doing so will load another instance of
  479. BREQUEST that is available only to the DOS session.  This
  480. operation provides the DOS session with its own copy of
  481. BREQUEST and prevents the DOS session from using the
  482. instance of BREQUEST that you loaded before starting
  483. Windows.
  484.  
  485.  
  486. Unloading the Windows Requester
  487.  
  488. At a Windows workstation, the operating system removes the
  489. dynamic link routines from memory when the application
  490. terminates or when the application explicitly unloads the
  491. DLLs using the operating system API functions.
  492.  
  493. NOTE: If Btrieve files are left open in an application because
  494. the application did not issue a Close operation, simply
  495. logging out of one or more servers from a workstation does
  496. not close the files or terminate the Btrieve SPX connection
  497. to the server.  The files remain open until you restart the
  498. workstation or unload the DOS Requester using BREQUTIL
  499. -STOP.  Also, keep in mind that a Reset operation closes
  500. files but does not unload the DOS Requester.
  501.  
  502.